/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package box4;

/**
 *
 * @author filippo.ambrosi
 */
public class nuovo2 {
static boolean condition() {
double app =0.00;
app = Math.random();
System.out.println("\n" + app + "000 \n");
boolean result = app < 0.85;
System.out.print(result + ", ");
return result;
        }
public static void main(String[] args) {
        while(condition())
System.out.println("sono dentro 'while'");
System.out.println("sono uscito dal 'whileì'");      
            }
}

